namespace EyeOpen.Io
{
	using System.Collections.Generic;
	using System.IO;

	public class FileWrapper : IFile
	{
		public IEnumerable<string> ReadAllLines(string fileName)
		{
			return File.ReadAllLines(fileName);
		}

		public IFileInfo GetFileInfo(string fileName)
		{
			return
				new FileInfoWrapper(fileName);
		}

		public void WriteAllText(string path, string contents)
		{
			File.WriteAllText(path, contents);
		}

		public string ReadAllText(string path)
		{
			return
				File.ReadAllText(path);
		}
	}
}